import axios from '@/utils/request'

export function getUserInfo() {
  return axios.get('/user/info')
}
export function login({ account, password }) {
  return axios({
    url: '/login',
    method: 'post',
    data: {
      account,
      password,
    },
  })
}
export function getAddressList() {
  return axios.get('/member/address')
}
export function addAddress(data) {
  return axios({
    method: 'post',
    url: '/member/address',
    data,
  })
}
export function subOrder(data) {
  return axios({
    method: 'post',
    url: '/member/order',
    data,
  })
}
